#!/bin/bash
set -e

case "$1" in
    purge)
        # 彻底删除软件包时，删除用户配置文件
        rm -f /usr/share/wifimanager/config.json
        ;;
    remove|failed-upgrade|abort-install|abort-upgrade|disappear)
        # 删除软件包但保留配置文件
        ;;
esac

exit 0
